#ifndef __TASK_H__
#define __TASK_H__
#include "Time.h"  

class Task
{
public:
	Task(TimeTicks tick);
	Task();
	virtual ~Task();

	virtual bool run(void* param) = 0;

	bool needRun();

	void setTick(TimeTicks tick);
	TimeTicks getTick();
private:
	TimeTicks time_;
};

#endif // __TASK_H__